
<body class="phoneGall" id="phone-gallery">
<script type="text/javascript" src="<?php echo base_url('skin/js/gallery.js'); ?>"></script>
<script type="text/javascript" src="<?php echo base_url('skin/js/ie-gallery.js'); ?>"></script>


	<div class="breadcrumbs shadow fluid-width">
			<div class="fixed-width center">
                <div class="crumbs"><h2><span class="icon crumbs gallery"></span> <a href="">GoGADGETS gallery</a></h2></div>
                <div class="marg20Top">
                    <ul class="page-sub desktop" style="display:none">								
                        <li><a href="<?php echo site_url('compare'); ?>"><span class="icon crumbs compare"></span> Comparison</a></li>						
                    </ul>
                </div>
			</div>
		</div>
	
	<div id="phoneGallery">
    	<!--- Gallery header ---->
        
		<!--- Gallery header ---->

    	<div class="tabletSelect">
            <div class="floatLeft">
                <label>Filter by</label>
                <select class="width72P">       
                    <option selected>P0.00 - P2,000.00</option>
                    <option>P2,001.00 - P3,000.00</option>
                    <option>P3,001.00 - P4,000.00</option>
                    <option>P4,001.00 - P5,000.00</option>
                    <option>P5,001.00 - P9,000.00</option>
                </select>
            </div>                   

            <div class="floatRight marg20Right width39P">
                <label>Show</label> 
                <select class="width72P brandsorter">
                    <?php /*<option>Cloudfone</option>
                    <option>Huawei</option>
                    <option>Lenovo</option>
                    <option>LG</option>
                    <option>Samsung</option><?php */ ?>
					<?php foreach($brands as $brand_item){ ?> 
						<option><?php echo $brand_item['gadgetBrand']; ?></option>
					<?php } ?>
                </select>		
				
             </div>
				 
    <!---    <div class="sorterr">
				    	
			<script type="text/javascript">
				jQuery(window).load(function(){
				   jQuery("#brand-newcontainer").html(jQuery("#brand-container").html());

					var tabs = jQuery('#brand-newcontainer .tabs');

					jQuery('a', tabs).on( "click", function(e) {
						e.preventDefault();
						jQuery(this).parent().addClass('active').siblings().removeClass('active');
					});

					jQuery('#brand-newcontainer .sorter a.tabs').on( "click", function(e) {
						e.preventDefault();
						var dataList = jQuery(jQuery(this).attr('href').toString());
					    jQuery('#brand-newcontainer .sorter .data-list').filter('.active').hide().removeClass('active');
					    dataList.show().addClass('active');
					});

					jQuery('#brand-newcontainer .data-list a').on( "click", function(e) {
						var $this = jQuery(this),
					    pos = $this.parent().position().top;

						$this.parents('.data-list').css('top', -pos).hide().removeClass('active');

						$this.parents('.sorter').find('a.tabs').contents()[0].nodeValue = $this.text();
					});   
				});
			</script>  
			<div id="brand-newcontainer">
						<div class="pull-left sorter">
									Show: <a href="#sort" class="tabs">All <span class="arrow-head down"></span></a>
									<ul class="data-list" id="sort">
									    <li>All</li>
										<li>Cloudfone</li>
										<li>Huawei</li>
										<li>Lenovo</li>
										<li>LG</li>
			                           <li>Samsung</li>
									</ul>
					    </div>
			</div>    
				       
    </div> from shop -->


            <span class="clear"></span>            
    	</div> <!--END div class="tabletSelect"-->
        
        <div class="galleryRight"></div>
    	
    	<div class="wizard" style="margin-bottom: 50px;">
            <a href="<?php  echo site_url('gallery'); ?>" class="">
            <span class="wiz1"></span>
                 <p>Pick a gadget</p>
            </a>
            <a href="<?php  echo site_url('promo'); ?>" class="">
             <span class="wiz2"></span>
                 <p>Choose your promo</p>
            </a>
            <a href="<?php  echo site_url('prepaid'); ?>" class="">
             <span class="wiz3"></span>
                 <p class="abs">Enter your <br>mobile number</p>
            </a>
            <a href="<?php  echo site_url('userprofile'); ?>" class=" ">
             <span class="wiz4"></span>
                 <p>Complete your profile</p>
            </a>
            <a href="<?php  echo site_url('globestore'); ?>" class="width100">
             <span class="wiz5"></span>
                 <p class="absd">Select your <br>preferred Globe Store <br>branch for handset <br>pickup</p>
            </a>
        </div>
    
        <p class="textBlue selectDevice header24 marg0">Pick a gadget</p>
        <div class="clear"></div>
    
    
    	<div class="gallery-header fluid-width">
		<div class="gallery960">

    <!-- Tooolbar START  -->
    <div class="toolbar">
        <div class="sorterr">
            <script type="text/javascript">
                jQuery(window).load(function(){
                   jQuery("#brand-newcontainer").html(jQuery("#brand-container").html());

                    var tabs = jQuery('#brand-newcontainer .tabs');

                    jQuery('a', tabs).on( "click", function(e) {
                        e.preventDefault(); //console.log("from viewgallery"); console.log(this);
                        jQuery(this).parent().addClass('active').siblings().removeClass('active');
                    });

                    jQuery('#brand-newcontainer .sorter a.tabs').on( "click", function(e) {
                        e.preventDefault(); console.log("from viewgallery"); console.log(this);
                        var dataList = jQuery(jQuery(this).attr('href').toString());
                            jQuery('#brand-newcontainer .sorter .data-list').filter('.active').hide().removeClass('active');
                            dataList.show().addClass('active');
                    });

                    jQuery('#brand-newcontainer .data-list a').on( "click", function(e) {	
                        var $this = jQuery(this),
                        pos = $this.parent().position().top;
                        $this.parents('.data-list').css('top', -pos).hide().removeClass('active');
                        $this.parents('.sorter').find('a.tabs').contents()[0].nodeValue = $this.text();
                    });   
                });
            </script>
            <div id="brand-newcontainer" class="tabletSelect2">
			 <div class="pull-left sorter width246 brand">
                <label>Show</label> 
                <select class="width72P brandsorter">
                	 <option>All</option>
                    <?php 
                    /*<option>Cloudfone</option>
                    <option>Huawei</option>
                    <option>Lenovo</option>
                    <option>LG</option>
                    <option>Samsung</option><?php */ ?>
					<?php foreach($brands as $brand_item){ ?> 
						<option><?php echo $brand_item['gadgetBrand']; ?></option>
					<?php } ?>
                  </select>    
                       <!--  <ul class="data-list" id="sort">
                            <li>All</li><li>Cloudfone</li><li>Huawei</li><li>Lenovo</li><li>LG</li><li>Samsung</li>
						</ul> -->   
			   </div> 
       
                <div class="sort-by">
                    <ul class="gallery-tabs tabs">
                        <li><a href="#" class="position1">Position</a></li>
                        <li class="active"><a href="#" class="name1">Name</a></li>
                        <li><a href="#" class="price1">Price</a></li>
                    </ul>

                    <div class="pull-left sorter width300 orderby">
                        <label>Order By:</label> 
                        <select class="width72P">
                            <option>Ascending</option>
                            <option>Descending</option>
                        </select>
                        <!--/ul-->
                    </div>
                </div>
            </div> 
        </div>
    </div>
    <!-- Tooolbar END  -->
	

	</div>
	</div>
    
    
    <div class="gallery-content">
		<div class="gallery960">


<div class="category-products">
	 <?php
     
	 		/* . . . . Sorting the default devices Default Order is Ascending Name filter  . . . . */
             $pricerange = array( // Price Filtering Display
                'price_a'=>array('0.00','2,000.00'),
                'price_b'=>array('2,001.00','3,000.00'),
                'price_c'=>array('3,001.00','4,000.00'),
                'price_d'=>array('4,001.00','5,000.00'),
                'price_e'=>array('5,001.00','9,000.00'),
            );

		    $order = array(); $sort = array();
		    $r = 0; $r1 = 0 ; $r2 = 0; $r3 = 0 ; $r4 = 0;
			foreach( $devices as $a ){
			   foreach( $a as $k => $v ){
					if($k == "name"){
						array_push($order, $v);
					}
					if($k == "price" ){
                        if( $v <= 2000.00 ){
                            $r++;
                        }elseif( $v <= 3000.00){
                            $r1++;
                        }elseif( $v <= 4000.00){
                            $r2++;
                        }elseif( $v <= 5000.00){
                            $r3++;
                        }elseif( $v <= 9000.00){
                            $r4++;
                        }
					}

			   }
			}
		 
			sort($order);
			foreach($order as $v){
				foreach($devices as $vl ){
					if( $v == $vl['name'] ){
					 	array_push($sort,$vl);		
					}
				}				
			}				 	 
			$devices = $sort;
			echo "<script type='text/javascript'>
						jQuery(document).ready(function() {
							$('span.filterData').eq(0).text( '(".$r.")' );
							$('span.filterData').eq(1).text( '(".$r1.")' );
							$('span.filterData').eq(2).text( '(".$r2.")');
							$('span.filterData').eq(3).text( '(".$r3.")');
							$('span.filterData').eq(4).text( '(".$r4.")');

						});
				 </script>
			";
			/* . . . . Sorting the default devices Default Order is Ascending Name filter  . . . . */

			/*. . . . . . . .Get Devices Number per Brand . . . . . .*/




			/*. . . . . . . .Get Devices Number per Brand  . . . . . . . */

	?>

    <ul class="gallery-products" id="products-list">
	    <?php foreach($devices as $dv){ ?> 
            <?php //print_r($dv); ?>
            <?php
                $id = $dv["id"];
                $sku = $dv["sku"];
                $url = base_url() . "index.php/specification/" . $sku;
                $prodName = $dv["name"];
                $imgSrc = $dv["imageurl"];
                $shortDesc = $dv["shortdescription"];
                $price = $dv["price"];
                $planprice = $dv["planprice"];
                $like = $dv["like"];
                $brand = $dv["brand"];
            ?>
					<!--- <li class="item <?php echo $brand.' '.$dv['pricerange'] . ' brand_' . $brand; ?>"> ---->
        <li class="item" id="gadget_<?php echo $id?>">
						<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>" class="product-image">
							<img src="<?php echo $imgSrc; ?>" height="150" alt="<?php echo $prodName; ?>" style="width: 50%; padding-left: 25%; ">
						</a>
						<div class="product-shop">
							<div class="f-fix">
							<h3 class="product-name" id="<?php echo $sku; ?>">
								<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>">
									<?php echo $prodName; ?>
								</a>
							</h3>
						<script type="text/javascript">
						jQuery(document).ready(function() {
						   jQuery('#<?php echo "galleryadd-" . $sku; ?>').click(function(){

						     var sku = "<?php echo $sku; ?>";
						     var maitainumbercompare = getCookie("maitainumbercompare");

						     if(maitainumbercompare=="" || maitainumbercompare=="0") {
								//alert(maitainumbercompare);
								//alert("This gadget was add in comparison list.");
								document.cookie="maitainumbercompare=" + "1" + "; path=/";
								document.cookie="maitaicompare1=" + sku + "; path=/";
						     }

						     if(maitainumbercompare=="1") {
							    //alert(maitainumbercompare);
								//alert("This gadget was add in comparison list.");
								var maitaicompare1 = getCookie("maitaicompare1");
								if(sku!=maitaicompare1){
								document.cookie="maitainumbercompare=" + "2" + "; path=/";
								document.cookie="maitaicompare2=" + sku + "; path=/";
								}
						     }
						     
						     if(maitainumbercompare=="2") 
						        alert("The comparison list is full.");	     
						        window.location="<?php echo base_url(); ?>index.php/compare";
							  
						   });
						});
						</script>
					       
										<p><?php echo $shortDesc; ?></p>	
                                        <p><?php echo $planprice; ?></p>
											                					
										<div class="customer-ctrl">

											<!-- <a class="compare" href="http://www.globe.com.ph/mysuperplan" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Get the phone with a Plan,iphone5-16gb-white, shop gallery-page, bestsellers ', 'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); /*_paq.push(['trackLink']);*/"><span style=" text-transform: none;font-size:14px; ">Get this with a Plan</span></a>	-->

											<?php if(!isset($_COOKIE['maitainumbercompare']) || $_COOKIE['maitainumbercompare']=="0"): ?>
											<a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
											<a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
											<?php endif;?>

											<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="1"): ?>
											  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE)): ?>
											     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
											     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
											  <?php else: ?>
											     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
											     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
											  <?php endif;?>
											<?php endif;?>

											<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="2"): ?>
											  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE) || in_array($_COOKIE['maitaicompare2'], $dv, TRUE)): ?>
											     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
											     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
											  <?php else: ?>
											     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
											     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
											  <?php endif;?>
											<?php endif;?>

					        <script type="text/javascript">
						jQuery(document).ready(function() {
						   jQuery('#<?php echo "galleryremove-" . $sku; ?>').click(function(){

						     var sku = "<?php echo $sku; ?>";
						     var maitaicompare1 = getCookie("maitaicompare1");
						     var maitaicompare2 = getCookie("maitaicompare2");
						     var maitainumbercompare = getCookie("maitainumbercompare");

						     if(maitainumbercompare=="1") {
						       if(sku==maitaicompare1){
							    document.cookie="maitainumbercompare=" + "0" + "; path=/";
								document.cookie="maitaicompare1=" + "" + "; path=/";
							 	document.cookie="maitaicompare2=" + "" + "; path=/";
							 	window.location="<?php echo base_url(); ?>index.php/gallery";
						       } 
						     }
							
						     if(maitainumbercompare=="2") {
						       document.cookie="maitainumbercompare=" + "1" + "; path=/";
						       
						       if(sku==maitaicompare1){
								 document.cookie="maitaicompare1=" + maitaicompare2 + "; path=/";
								 document.cookie="maitaicompare2=" + "" + "; path=/";
						       } 

						       if(sku==maitaicompare2)
							 	document.cookie="maitaicompare2=" + "" + "; path=/";	     
						      window.location="<?php echo base_url(); ?>index.php/gallery";
						     } 
					 
						   });
						});
						</script>

                        <span class="price" style="display:none;"><?php echo $price; ?></span>
                        <span class="brand" style="display:none;"><?php echo $brand; ?></span>
                        <span class="position" style="display:none;"><?php echo $id; ?></span>

						</div>       
	        		</div>
	      	    </div>
	   	    </li>							 
							 
		<?php   } ?>
   </ul>

</div>


<script type="text/javascript">

   	function addToCartBundle(formId) {
   		document.getElementById(formId).submit();    		
   	}
 	
</script>

		<div class="toolbar_page">
    <div class="pager" style="display: none">
        <p class="amount">
                            <strong><?php echo count($devices); ?> Item(s)</strong>
                    </p>

        <?php /*?><div class="limiter">
            <label>Show</label>
            <select onchange="setLocation(this.value)">
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=4&amp;order=name&amp;sortby=bestsellers">
                    4                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=8&amp;order=name&amp;sortby=bestsellers">
                    8                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=12&amp;order=name&amp;sortby=bestsellers">
                    12                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=16&amp;order=name&amp;sortby=bestsellers">
                    16                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=20&amp;order=name&amp;sortby=bestsellers">
                    20                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=100&amp;order=name&amp;sortby=bestsellers" selected="selected">
                    100                </option>
             </select> per page        </div>
		<?php */ ?>
        
	
    
    
        

    </div>
</div>
<div class="gallery-pagination">
	<a id="loadmoreitems" href="javascript:void(0)" class="btn load-more pull-left" style="display:block;">Load More</a>	       
	<p class="page-indicator"><?php echo count($devices); ?> items</p>	
	<a href="#" id="btn_top" class="btn top pull-right">Top of the page</a>
</div>
			
		</div>
		
		
<div class="floatLeft marg20Left">
	<div class="gallery-filter">
	<div class="gallery-filter-header">
		<a href="#filter">
			<h3><span class="icon other filter"></span> Filter By</h3>
			<span id="gallery-filter-by-collapse" href="#collapse" class="icon other collapse invert"></span>
		</a>
	</div>
        
    <!-- ========= PRICE START ========== -->
	<div class="filters">
		<?php
			//count the number of gadgets in php put to span.filterData
		?>
		<h4 style="display: none" id="label-current-filter"><a href="#currentfilter">CURRENT FILTER <span id="gallery-filter-current-collapse" class="icon other collapse"></span></a></h4>
        <ul style="display: none" id="currentfilter" class="active" style="display: block;">
            <li>
                <dl>	
                    <dd class="current-filter-text-container" id="current-filter-price-container" style="display: none">
                        <a href="#." ><span id="current-filter-price-text">Price</span> <strong id="reset-price">(X)</strong></a>
                    </dd>
                    <dd class="current-filter-text-container" id="current-filter-brand-container" style="display: none">
                        <a href="#." ><span id="current-filter-brand-text">Brand</span> <strong id="reset-brand">(X)</strong></a>
                    </dd>
                    <dd class="current-filter-text-container" id="current-filter-reset-container">
                        <a href="<?php echo site_url('gallery'); ?>" ><span id="current-filter-reset-text">Clear all</span></a>
                    </dd>
					</dl>
            </li>
        </ul>
		
		<h4 id="label-price"><a href="#price">PRICE <span id="gallery-filter-price-collapse" class="icon other collapse"></span></a></h4>
        <ul id="price" class="active" style="display: block;">
            <li >
                <dl>	
                     <dd >
                        <a href="" style="display:none;"><span key="all" class="price">All</span></a>
                    </dd>  
                    <?php foreach($pricerange as $key => $value): ?>
                    <dd>
                        <a href="" >
                          <span key="<?php echo $key ?>" class="price">P<?php echo $value[0]; ?> - P<?php echo $value[1];?></span><span class="filterData"><!-- JS will fillup this one --></span></a>
                      </dd>
                    <?php endforeach; ?>
                 </dl>
            </li>
        </ul>
    </div>
    <!-- ========= PRICE END ========== -->
    </div>
                
                <div class="deviceInfos">
                		<div>
                        	<p><b>Gadget:</b><p>
                            <p>None</p>
                        </div>
                
                		<div>
                        	<p><b>Promo:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                       	    <p><b>Registration Period </br> and Savings:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                        	<p><b>Mobile Number:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                        	<p><b>Profile:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                       		<p><b>Globe Store Branch:</b><p>
                            <p>None</p>
                        </div>    
                </div>
			<div class="deviceInfosIns">
                		<div  class="deviceBox active">
                        	<p><b>Gadget:</b><p>
                            <span id="selectedDevice" style="display:none;"><?php if(isset($_COOKIE['gadget'])) echo $_COOKIE['gadget']; ?></span>		
                            <p id="gadget" ><?php if(isset($_COOKIE['gadget'])) echo $_COOKIE['gadget']; ?> - <?php if(isset($_COOKIE['price'])) echo $_COOKIE['price']; ?></p>
                        </div>
                 
                		<div class="promoBox active">
                        	<p><b>Promo:</b><p>
                            <p id="promo"><?php if(isset($_COOKIE['promo'])) echo $_COOKIE['promo']; ?></p>
                        </div>
                        
                        <div class="commitmentBox active">
                       	    <p><b>Registration Period and Savings:</b><p>
                            <p id="commitmentBox"><?php if(isset($_COOKIE['commitmentBox'])) echo $_COOKIE['commitmentBox']; ?></p>
                        </div>
                        
                        <div class="prepaidBox active">
                        	<p><b>Mobile Number:</b><p>
							<p id="mobtel"><?php if(isset($_COOKIE['mobtel'])){ if($_COOKIE['mobtel']=="0") echo "None"; else echo $_COOKIE['mobtel'];} ?></p>
                        </div>
                        
                        <div class="profileBox active">
                        	<p><b>Profile:</b><p>
							<p class="pnone">None</p>
                           	<p id="pname"><span id="name"><?php if(isset($_COOKIE['username'])) echo $_COOKIE['username']; ?></span></p>
                           	<p id="pemail">Email Address:<br><span id="email"><?php if(isset($_COOKIE['eadd'])) echo $_COOKIE['eadd']; ?></span></p>
                           	<p id="pdob">Date of Birth:<br><span id="dob"><?php if(isset($_COOKIE['bday'])) echo $_COOKIE['bday']; ?></span></p>
                           	<p id="padd">Home Address:<br><span id="add"><?php if(isset($_COOKIE['address'])) echo $_COOKIE['address']; ?></span>

                            </p>
                        </div>
                        
                        <div class="storeBox active">
                       		  <p><b>Globe Store Branch:</b><p>
                            <p id="globestore"><?php if(isset($_COOKIE['globestore'])) echo $_COOKIE['globestore']; ?></p>
                        </div>   
            </div>
   </div>             
</div>  
    </div>

<select id="hiddenbrands" style="display: none"><option>All</option><?php foreach($brands as $brand_item){ ?> <option><?php echo $brand_item['gadgetBrand']; ?></option><?php } ?></select>

<!--- <script type="text/javascript" src="<?php //echo base_url('skin/js/price_filter.js'); ?>"></script> ---->
